"use strict";

const {
  Controller
} = require("egg");
const path = require("path");
const fs = require("fs");

const utils = require('../utils/index');

 
class HomeController extends Controller {
  async index() {
    const {
      ctx
    } = this;
    const {
      text
    } = ctx.params;
    let result = await ctx.service.gptAiService.sendTalk(text);
    ctx.response.body = result;
  }
}

module.exports = HomeController;